<template>
  <div class="cus-title" :style="styles">
    <div class="cus-title-left">{{ title }}</div>
    <div class="cus-title-right">
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
import { defineProps } from 'vue';
defineProps({
  styles: {
    type: Object,
    default: () => {}
  },
  title: {
    type: String,
    default: ''
  }
});
</script>
<style lang="scss" scoped>
.cus-title {
  width: 100%;
  display: flex;
  align-items: center;
  .cus-title-left {
    font-size: 14px;
    font-weight: bold;
    position: relative;
    padding-left: 6px;
    color: #000;
    &::after {
      content: "";
      position: absolute;
      left: 0px;
      top: 4px;
      width: 3px;
      height: 13px;
      background: linear-gradient(180deg, #3e7fff 0%, #2c97f7 100%);
    }
  }
}
</style>
